#!/usr/bin/php
<?PHP

$fp = fopen("test_file", "w");

$num = 0xAB;

fwrite($fp, pack("L3", $num, 122, 65));

fclose($fp);

$fp = fopen("test_file", "r");

$s = fread($fp, 12);

print_r(unpack("L3", $s));

fclose($fp);


